package w3_1;

public class Lt1 {
	public static void main(String[] args) {
		// 求 1!+2!+...+10!
		long sum, n;
		sum = 0;
		n = 1;
		for (int i=1; i<=4; i++) {
			n = i*n;
			sum += n;
		}
		System.out.println("sum = " + sum);
	}

}
